import 'package:city_pickers/city_pickers.dart';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:gourmet/color/hex.dart';
import 'package:gourmet/extensions/ex_widget.dart';
import 'package:gourmet/route/index.dart';
import 'package:gourmet/utils/colors.dart';
import 'package:gourmet/utils/radian.dart';
import 'package:gourmet/utils/styles.dart';

class StoreInfoController extends GetxController {
  final double navHeight = 44 + Get.mediaQuery.padding.top;
  final double navTop = 44.0;
}

class StoreInfoPage extends GetView<StoreInfoController> {
  const StoreInfoPage({super.key});

  @override
  Widget build(BuildContext context) {
    return MediaQuery.removeViewPadding(
      context: context,
      removeTop: true,
      removeLeft: true,
      removeRight: true,
      removeBottom: true,
      child: Scaffold(
        backgroundColor: HexColor(ColorsUtils.colorF7f7),
        appBar: PreferredSize(
          preferredSize: Size.fromHeight(controller.navHeight),
          child: AnnotatedRegion<SystemUiOverlayStyle>(
            value: SystemUiOverlayStyle.dark,
            child: Container(
              color: HexColor(ColorsUtils.colorF7f7),
              height: controller.navHeight,
              padding: Get.mediaQuery.padding,
              child: Stack(
                children: [
                  Positioned(
                    width: 40,
                    height: controller.navTop,
                    top: 0,
                    left: 0,
                    child: Center(
                      child: Icon(
                        CupertinoIcons.chevron_back,
                        size: 20,
                        color: HexColor(ColorsUtils.color0000),
                      ),
                    ).onTap(Get.back),
                  ),
                  Center(
                    child: Text.rich(
                      TextSpan(
                        children: [
                          TextSpan(
                            text: '2/',
                            style: StylesUtils.customTextStyle(
                              fontSize: StylesUtils.fontSize16,
                              fontWeight: FontWeight.w700,
                              color: ColorsUtils.color0000,
                            ),
                          ),
                          TextSpan(
                            text: '4',
                            style: StylesUtils.customTextStyle(
                              color: ColorsUtils.color0000,
                              fontSize: StylesUtils.fontSize12,
                              fontWeight: FontWeight.w700,
                            ),
                          ),
                          TextSpan(
                            text: ' 门店信息',
                            style: StylesUtils.customTextStyle(
                              fontSize: StylesUtils.fontSize16,
                              color: ColorsUtils.color0000,
                              fontWeight: FontWeight.w700,
                            ),
                          ),
                        ],
                      ),
                    ),
                  ),
                ],
              ),
            ),
          ),
        ),
        body: SingleChildScrollView(
          padding: const EdgeInsets.only(bottom: 30),
          child: Column(
            children: [
              Container(
                padding:
                    const EdgeInsets.symmetric(vertical: 15, horizontal: 15),
                margin: const EdgeInsets.only(top: 10),
                alignment: Alignment.centerLeft,
                decoration: decoration,
                child: Text(
                  '为了方便我们与您尽快联系达成合作，请如实填写以下资料，谢谢您的支持与配合！',
                  style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color7979,
                    fontSize: StylesUtils.fontSize15,
                    lineHeight: 1.4,
                  ),
                ),
              ),
              Container(
                padding:
                    const EdgeInsets.symmetric(vertical: 15, horizontal: 15),
                margin: const EdgeInsets.only(top: 10),
                alignment: Alignment.centerLeft,
                decoration: decoration,
                child: ListBody(
                  children: [
                    SizedBox(
                      height: 65,
                      child: Row(
                        children: [
                          Container(
                            width: 80,
                            alignment: Alignment.centerLeft,
                            child: Text(
                              '负责人',
                              style: StylesUtils.customTextStyle(
                                fontSize: StylesUtils.fontSize15,
                                color: ColorsUtils.color0000,
                              ),
                            ),
                          ),
                          Expanded(
                            child: Center(
                              child: TextField(
                                cursorHeight: 20,
                                cursorWidth: 3,
                                cursorRadius: const Radius.circular(2),
                                cursorColor: HexColor(ColorsUtils.colorFf64),
                                style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize15,
                                  color: ColorsUtils.color0000,
                                ),
                                textAlign: TextAlign.left,
                                textAlignVertical: TextAlignVertical.center,
                                textDirection: TextDirection.ltr,
                                decoration: InputDecoration(
                                  hintText: '请输入负责人真实姓名',
                                  hintStyle: StylesUtils.customTextStyle(
                                    fontSize: StylesUtils.fontSize15,
                                    color: ColorsUtils.color9999,
                                  ),
                                  filled: true,
                                  fillColor: HexColor(ColorsUtils.colorF7f7),
                                  isDense: true,
                                  isCollapsed: true,
                                  contentPadding: const EdgeInsets.symmetric(
                                      vertical: 15, horizontal: 20),
                                  enabledBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  focusedBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  border: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  constraints: const BoxConstraints.expand(
                                      width: 270, height: 50),
                                ),
                              ),
                            ),
                          ),
                        ],
                      ),
                    ),
                    SizedBox(
                      height: 65,
                      child: Row(
                        children: [
                          Container(
                            width: 80,
                            alignment: Alignment.centerLeft,
                            child: Text(
                              '手机号码',
                              style: StylesUtils.customTextStyle(
                                fontSize: StylesUtils.fontSize15,
                                color: ColorsUtils.color0000,
                              ),
                            ),
                          ),
                          Expanded(
                            child: Center(
                              child: TextField(
                                cursorHeight: 20,
                                cursorWidth: 3,
                                cursorRadius: const Radius.circular(2),
                                cursorColor: HexColor(ColorsUtils.colorFf64),
                                style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize15,
                                  color: ColorsUtils.color0000,
                                ),
                                textAlign: TextAlign.left,
                                textAlignVertical: TextAlignVertical.center,
                                textDirection: TextDirection.ltr,
                                keyboardType: TextInputType.phone,
                                decoration: InputDecoration(
                                  hintText: '请输入负责人手机号码',
                                  hintStyle: StylesUtils.customTextStyle(
                                    fontSize: StylesUtils.fontSize15,
                                    color: ColorsUtils.color9999,
                                  ),
                                  filled: true,
                                  fillColor: HexColor(ColorsUtils.colorF7f7),
                                  isDense: true,
                                  isCollapsed: true,
                                  prefixIconConstraints:
                                      const BoxConstraints.expand(
                                          height: 50, width: 70),
                                  prefixIcon: Container(
                                    alignment: Alignment.center,
                                    child: Text.rich(
                                      TextSpan(
                                        children: [
                                          TextSpan(
                                            text: '+86 ',
                                            style: StylesUtils.customTextStyle(
                                              fontSize: StylesUtils.fontSize16,
                                              color: ColorsUtils.color0000,
                                            ),
                                          ),
                                          WidgetSpan(
                                              child: Icon(
                                                CupertinoIcons.chevron_down,
                                                color: HexColor(
                                                    ColorsUtils.color9999),
                                                size: 14,
                                              ),
                                              alignment:
                                                  PlaceholderAlignment.middle),
                                        ],
                                      ),
                                    ),
                                  ).onTap(() {}),
                                  contentPadding: const EdgeInsets.symmetric(
                                      vertical: 15, horizontal: 20),
                                  enabledBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  focusedBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  border: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  constraints: const BoxConstraints.expand(
                                      width: 270, height: 50),
                                ),
                              ),
                            ),
                          ),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              Container(
                padding:
                    const EdgeInsets.symmetric(vertical: 15, horizontal: 15),
                margin: const EdgeInsets.only(top: 10),
                alignment: Alignment.centerLeft,
                decoration: decoration,
                child: ListBody(
                  children: [
                    SizedBox(
                      height: 65,
                      child: Row(
                        children: [
                          Container(
                            width: 80,
                            alignment: Alignment.centerLeft,
                            child: Text(
                              '主营品类',
                              style: StylesUtils.customTextStyle(
                                fontSize: StylesUtils.fontSize15,
                                color: ColorsUtils.color0000,
                              ),
                            ),
                          ),
                          Expanded(
                            child: Center(
                              child: TextField(
                                cursorHeight: 20,
                                cursorWidth: 3,
                                cursorRadius: const Radius.circular(2),
                                cursorColor: HexColor(ColorsUtils.colorFf64),
                                style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize15,
                                  color: ColorsUtils.color0000,
                                ),
                                textAlign: TextAlign.left,
                                textAlignVertical: TextAlignVertical.center,
                                textDirection: TextDirection.ltr,
                                readOnly: true,
                                decoration: InputDecoration(
                                  hintText: '肠粉',
                                  hintStyle: StylesUtils.customTextStyle(
                                    fontSize: StylesUtils.fontSize15,
                                    color: ColorsUtils.color9999,
                                  ),
                                  filled: true,
                                  fillColor: HexColor(ColorsUtils.colorF7f7),
                                  isDense: true,
                                  isCollapsed: true,
                                  suffixIconConstraints:
                                      const BoxConstraints.expand(
                                          height: 50, width: 40),
                                  suffixIcon: Container(
                                    alignment: Alignment.center,
                                    child: Icon(
                                      CupertinoIcons.chevron_right,
                                      size: 15,
                                      color: HexColor(ColorsUtils.color9999),
                                    ),
                                  ),
                                  contentPadding: const EdgeInsets.symmetric(
                                      vertical: 15, horizontal: 20),
                                  enabledBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  focusedBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  border: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  constraints: const BoxConstraints.expand(
                                      width: 270, height: 50),
                                ),
                                onTap: () {},
                              ),
                            ),
                          ),
                        ],
                      ),
                    ),
                    SizedBox(
                      height: 65,
                      child: Row(
                        children: [
                          Container(
                            width: 80,
                            alignment: Alignment.centerLeft,
                            child: Text(
                              '辅营品类',
                              style: StylesUtils.customTextStyle(
                                fontSize: StylesUtils.fontSize15,
                                color: ColorsUtils.color0000,
                              ),
                            ),
                          ),
                          Expanded(
                            child: Center(
                              child: TextField(
                                cursorHeight: 20,
                                cursorWidth: 3,
                                cursorRadius: const Radius.circular(2),
                                cursorColor: HexColor(ColorsUtils.colorFf64),
                                style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize15,
                                  color: ColorsUtils.color0000,
                                ),
                                textAlign: TextAlign.left,
                                textAlignVertical: TextAlignVertical.center,
                                textDirection: TextDirection.ltr,
                                readOnly: true,
                                decoration: InputDecoration(
                                  hintText: '饮茶',
                                  hintStyle: StylesUtils.customTextStyle(
                                    fontSize: StylesUtils.fontSize15,
                                    color: ColorsUtils.color9999,
                                  ),
                                  filled: true,
                                  fillColor: HexColor(ColorsUtils.colorF7f7),
                                  isDense: true,
                                  isCollapsed: true,
                                  suffixIconConstraints:
                                      const BoxConstraints.expand(
                                          height: 50, width: 40),
                                  suffixIcon: Container(
                                    alignment: Alignment.center,
                                    child: Icon(
                                      CupertinoIcons.chevron_right,
                                      size: 15,
                                      color: HexColor(ColorsUtils.color9999),
                                    ),
                                  ),
                                  contentPadding: const EdgeInsets.symmetric(
                                      vertical: 15, horizontal: 20),
                                  enabledBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  focusedBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  border: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  constraints: const BoxConstraints.expand(
                                      width: 270, height: 50),
                                ),
                                onTap: () {},
                              ),
                            ),
                          ),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              Container(
                padding:
                    const EdgeInsets.symmetric(vertical: 15, horizontal: 15),
                margin: const EdgeInsets.only(top: 10),
                alignment: Alignment.centerLeft,
                decoration: decoration,
                child: ListBody(
                  children: [
                    SizedBox(
                      height: 65,
                      child: Row(
                        children: [
                          Container(
                            width: 80,
                            alignment: Alignment.centerLeft,
                            child: Text(
                              '店铺名称',
                              style: StylesUtils.customTextStyle(
                                fontSize: StylesUtils.fontSize15,
                                color: ColorsUtils.color0000,
                              ),
                            ),
                          ),
                          Expanded(
                            child: Center(
                              child: TextField(
                                cursorHeight: 20,
                                cursorWidth: 3,
                                cursorRadius: const Radius.circular(2),
                                cursorColor: HexColor(ColorsUtils.colorFf64),
                                style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize15,
                                  color: ColorsUtils.color0000,
                                ),
                                textAlign: TextAlign.left,
                                textAlignVertical: TextAlignVertical.center,
                                textDirection: TextDirection.ltr,
                                decoration: InputDecoration(
                                  hintText: '请输入店铺名称',
                                  hintStyle: StylesUtils.customTextStyle(
                                    fontSize: StylesUtils.fontSize15,
                                    color: ColorsUtils.color9999,
                                  ),
                                  filled: true,
                                  fillColor: HexColor(ColorsUtils.colorF7f7),
                                  isDense: true,
                                  isCollapsed: true,
                                  contentPadding: const EdgeInsets.symmetric(
                                      vertical: 15, horizontal: 20),
                                  enabledBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  focusedBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  border: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  constraints: const BoxConstraints.expand(
                                      width: 270, height: 50),
                                ),
                              ),
                            ),
                          ),
                        ],
                      ),
                    ),
                    SizedBox(
                      height: 65,
                      child: Row(
                        children: [
                          Container(
                            width: 80,
                            alignment: Alignment.centerLeft,
                            child: Text(
                              '所在地区',
                              style: StylesUtils.customTextStyle(
                                fontSize: StylesUtils.fontSize15,
                                color: ColorsUtils.color0000,
                              ),
                            ),
                          ),
                          Expanded(
                            child: Center(
                              child: TextField(
                                cursorHeight: 20,
                                cursorWidth: 3,
                                cursorRadius: const Radius.circular(2),
                                cursorColor: HexColor(ColorsUtils.colorFf64),
                                style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize15,
                                  color: ColorsUtils.color0000,
                                ),
                                textAlign: TextAlign.left,
                                textAlignVertical: TextAlignVertical.center,
                                textDirection: TextDirection.ltr,
                                readOnly: true,
                                decoration: InputDecoration(
                                  hintText: '请选择',
                                  hintStyle: StylesUtils.customTextStyle(
                                    fontSize: StylesUtils.fontSize15,
                                    color: ColorsUtils.color9999,
                                  ),
                                  filled: true,
                                  fillColor: HexColor(ColorsUtils.colorF7f7),
                                  isDense: true,
                                  isCollapsed: true,
                                  suffixIconConstraints:
                                      const BoxConstraints.expand(
                                          height: 50, width: 40),
                                  suffixIcon: Container(
                                    alignment: Alignment.center,
                                    child: Icon(
                                      CupertinoIcons.chevron_right,
                                      size: 15,
                                      color: HexColor(ColorsUtils.color9999),
                                    ),
                                  ),
                                  contentPadding: const EdgeInsets.symmetric(
                                      vertical: 15, horizontal: 20),
                                  enabledBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  focusedBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  border: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  constraints: const BoxConstraints.expand(
                                      width: 270, height: 50),
                                ),
                                onTap: () async {
                                  Result? result =
                                      await CityPickers.showCityPicker(
                                          context: context,
                                          height: 350,
                                          itemExtent: 40);

                                  if (result != null) {
                                    Get.log('result = $result');
                                  }
                                },
                              ),
                            ),
                          ),
                        ],
                      ),
                    ),
                    SizedBox(
                      height: 65,
                      child: Row(
                        children: [
                          Container(
                            width: 80,
                            alignment: Alignment.centerLeft,
                            child: Text(
                              '地址详情',
                              style: StylesUtils.customTextStyle(
                                fontSize: StylesUtils.fontSize15,
                                color: ColorsUtils.color0000,
                              ),
                            ),
                          ),
                          Expanded(
                            child: Center(
                              child: TextField(
                                cursorHeight: 20,
                                cursorWidth: 3,
                                cursorRadius: const Radius.circular(2),
                                cursorColor: HexColor(ColorsUtils.colorFf64),
                                style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize15,
                                  color: ColorsUtils.color0000,
                                ),
                                textAlign: TextAlign.left,
                                textAlignVertical: TextAlignVertical.center,
                                textDirection: TextDirection.ltr,
                                decoration: InputDecoration(
                                  hintText: '请输入门店详细地址',
                                  hintStyle: StylesUtils.customTextStyle(
                                    fontSize: StylesUtils.fontSize15,
                                    color: ColorsUtils.color9999,
                                  ),
                                  filled: true,
                                  fillColor: HexColor(ColorsUtils.colorF7f7),
                                  isDense: true,
                                  isCollapsed: true,
                                  contentPadding: const EdgeInsets.symmetric(
                                      vertical: 15, horizontal: 20),
                                  enabledBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  focusedBorder: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  border: OutlineInputBorder(
                                    borderRadius: BorderRadius.circular(10),
                                    borderSide: BorderSide.none,
                                  ),
                                  constraints: const BoxConstraints.expand(
                                      width: 270, height: 50),
                                ),
                              ),
                            ),
                          ),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              Container(
                padding:
                    const EdgeInsets.symmetric(vertical: 15, horizontal: 15),
                margin: const EdgeInsets.only(top: 10),
                alignment: Alignment.centerLeft,
                decoration: decoration,
                child: ListBody(
                  children: [
                    Center(
                      child: Container(
                        constraints: const BoxConstraints.expand(
                            width: 345, height: 205),
                        decoration: BoxDecoration(
                          borderRadius: BorderRadius.circular(10),
                          color: HexColor(ColorsUtils.colorF9f9),
                        ),
                        alignment: Alignment.center,
                        child: SizedBox(
                          width: 70,
                          height: 70,
                          child: Column(
                            children: [
                              Center(
                                child: Icon(
                                  CupertinoIcons.camera_fill,
                                  size: 46,
                                  color: HexColor(ColorsUtils.color9999),
                                ),
                              ),
                              Container(
                                margin: const EdgeInsets.only(top: 5),
                                alignment: Alignment.center,
                                child: Text(
                                  '点击上传',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize15,
                                      color: ColorsUtils.color9999),
                                ),
                              )
                            ],
                          ),
                        ).onTap(() async {
                          FilePickerResult? result =
                              await FilePicker.platform.pickFiles(
                            type: FileType.image,
                          );
                          if (result != null) {
                            Get.log('result = ${result.toString()}');
                          }
                        }),
                      ),
                    ),
                    Container(
                      height: 50,
                      alignment: Alignment.center,
                      child: Text(
                        '店铺门面图(需包含完整牌匾)',
                        style: StylesUtils.customTextStyle(
                          fontSize: StylesUtils.fontSize15,
                          color: ColorsUtils.color0000,
                        ),
                      ),
                    ),
                    Center(
                      child: Container(
                        constraints: const BoxConstraints.expand(
                            width: 345, height: 205),
                        decoration: BoxDecoration(
                          borderRadius: BorderRadius.circular(10),
                          color: HexColor(ColorsUtils.colorF9f9),
                        ),
                        alignment: Alignment.center,
                        child: SizedBox(
                          width: 70,
                          height: 70,
                          child: Column(
                            children: [
                              Center(
                                child: Icon(
                                  CupertinoIcons.camera_fill,
                                  size: 46,
                                  color: HexColor(ColorsUtils.color9999),
                                ),
                              ),
                              Container(
                                margin: const EdgeInsets.only(top: 5),
                                alignment: Alignment.center,
                                child: Text(
                                  '点击上传',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize15,
                                      color: ColorsUtils.color9999),
                                ),
                              )
                            ],
                          ),
                        ).onTap(() async {
                          FilePickerResult? result =
                              await FilePicker.platform.pickFiles(
                            type: FileType.image,
                          );
                          if (result != null) {
                            Get.log('result = ${result.toString()}');
                          }
                        }),
                      ),
                    ),
                    Container(
                      padding: const EdgeInsets.only(top: 20, bottom: 5),
                      alignment: Alignment.center,
                      child: Text(
                        '店内真实环境图',
                        style: StylesUtils.customTextStyle(
                          fontSize: StylesUtils.fontSize15,
                          color: ColorsUtils.color0000,
                        ),
                      ),
                    ),
                  ],
                ),
              ),
            ],
          ),
        ),
        bottomNavigationBar: SafeArea(
          bottom: true,
          child: Container(
            height: 60,
            alignment: Alignment.center,
            child: Container(
              alignment: Alignment.center,
              constraints: const BoxConstraints.expand(width: 315, height: 45),
              decoration: BoxDecoration(
                borderRadius: BorderRadius.circular(23),
                gradient: LinearGradient(
                  colors: [
                    ColorsUtils.rgba(255, 153, 0, 1),
                    ColorsUtils.rgba(255, 153, 0, 1),
                    ColorsUtils.rgba(254, 70, 1, 1),
                    ColorsUtils.rgba(254, 70, 1, 1)
                  ],
                  stops: const [0, 0, 1, 1],
                  transform: GradientRotation(
                    RadianUtils.angleToRadian(90),
                  ),
                  end: Alignment.topCenter,
                  begin: Alignment.bottomCenter,
                ),
              ),
              child: Text(
                '下一步',
                style: StylesUtils.customTextStyle(
                  fontSize: StylesUtils.fontSize16,
                ),
              ),
            ).onTap(() {
              Get.toNamed(Routes.storeLegal);
            }),
          ),
        ),
      ),
    );
  }

  BoxDecoration get decoration {
    return BoxDecoration(
      color: Colors.white,
      borderRadius: BorderRadius.circular(10),
    );
  }
}
